package com.weipai.education.model;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
@Data
@Accessors(chain = true)
public class Customer {
    private Integer id;

    private Date createTime;

    private Date updateTime;

    @NotBlank(message = "客户姓名不能为空")
    private String name;

    @NotNull(message = "客户性别不能为空")
    private Integer sex;

    private Date dateBirth;

    @NotBlank(message = "第一监护人姓名不能为空")
    private String guardianOne;

    @NotBlank(message = "第一监护人手机号不能为空")
    private String mobileOne;

    @NotBlank(message = "第二监护人姓名不能为空")
    private String guardianTwo;

    @NotBlank(message = "第二监护人手机号不能为空")
    private String mobileTwo;

    private Date firstTakeTime;

    private Integer takeGoodsNumber;

    private Integer userId;

    private Integer status;

    @NotBlank(message = "头像不能为空")
    private String headImg;

    @NotBlank(message = "学校不能为空")
    private String school;

    @NotBlank(message = "班级不能为空")
    private String grade;

    @NotBlank(message = "省份不能为空")
    private String province;
    
    @NotBlank(message = "城市不能为空")
    private String city;

    @NotBlank(message = "区/县不能为空")
    private String county;

    @NotBlank(message = "详细地址不能为空")
    private String address;

    @NotBlank(message = "工作单位不能为空")
    private String workUnit;
}